INPUT_FILE_DIR=./InputFile
OUTPUT_FILE_DIR=./OutputFile
OUTPUT_LOG_FILE_DIR=./OutputLogFile
OUTPUT_TIME_FILE_DIR=./OutputTimeFile
OUTPUT_PHY_FILE_DIR=./OutputPhyFile
OUTPUT_ERR_FILE_DIR=./OutputErrFile
OUTPUT_HTML_FILE_DIR=./OutputHTML
JOB_FILE_DIR=./JobFile

APPS=(../SimplifiedCalo/SimplifiedCalo ../ParN03/ParN03)
THREADS=(2 4)
INPUT_SAMPLES=(e+   e+   pi-  pi-  pi-  pi- pi-  proton antiproton)
INPUT_PYLISTS=(FTFP FTFP FTFP FTFP QGSP BIC LHEP FTFP   QGSP)
INPUT_BFIELDS=(4    0    4    0    4    4   4    4      4)
#INPUT_SAMPLES=(pi-   )
#INPUT_PYLISTS=(FTFP )
#INPUT_BFIELDS=(4    )
ENERGYS=(1 5)
EVENTS=(4 4)
RUNS=2


index=0

for energy_i in ${ENERGYS[@]}
do
  for input_i in $(seq 0 $((${#INPUT_SAMPLES[@]} - 1)))
  do
      ### produce input file ###
    B_APPS[$index]=${APPS[0]}
    B_ENERGYS[$index]=$energy_i
    B_SAMPLES[$index]=${INPUT_SAMPLES[$input_i]} 
    B_BFIELDS[$index]=${INPUT_BFIELDS[$input_i]}
    B_PYLISTS[$index]=${INPUT_PYLISTS[$input_i]}
    B_EVENTS[$index]=${EVENTS[0]}
    index=$(expr $index + 1)
  done
done

#B_APPS[$index]=${APPS[0]}
#B_ENERGYS[$index]=1400
#B_SAMPLES[$index]=pi-
#B_BFIELDS[$index]=4
#B_PYLISTS[$index]=FTFP
#B_EVENTS[$index]=${EVENTS[1]}
#index=$(expr $index + 1)



B_TOTAL=$index

#for index in $(seq 0 $((${#B_APPS[@]} - 1)))
#do
# echo   ${B_APPS[$index]} ${B_ENERGYS[$index]} ${B_SAMPLES[$index]} ${B_BFIELDS[$index]} ${B_PYLISTS[$index]}
# index=$(expr $index + 1)
#done






